package personalize;

import javax.swing.JFileChooser;
import javax.swing.filechooser.FileFilter;

@SuppressWarnings("serial")
public class MyFileChooser extends JFileChooser{
	public MyFileChooser(){
		this.setFileSelectionMode(JFileChooser.FILES_ONLY );
		this.setAccessory(new FileImagePreview(this));
		FileFilter IFF = new ImageFilter();
		this.addChoosableFileFilter(IFF);
		this.setFileFilter(IFF);
		this.setAcceptAllFileFilterUsed(false);
	}

}
